﻿@model TextRPG.Models.Inventory

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Inventory</legend>

    <div class="display-label">InventorySize</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.InventorySize)
    </div>

<table> 
    <tr> 
        <th>ID</th> 
        <th>Name</th> 
        <th>Description</th> 
    </tr> 
     @foreach (var item in Model.Items)
     {
         <tr>
            <td>
                @item.ItemID
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.Description
            </td>
         </tr>
     }
</table> 
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.InventoryID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
